package com.itheima.interceptor;

import com.itheima.domain.db.Admin;


public class SoulHolder {

    private static final ThreadLocal<Admin> TL = new ThreadLocal<>();

    public static void set(Admin admin){
        TL.set(admin);
    }


    public static Admin get(){
        return TL.get();
    }

    public static void remove(){
        TL.remove();
    }


}
